import request from '@/utils/request'

// 列表
export const getList = (params) => {
  return request({
    url: '/steel-arch/gantry/list',
    params:params,
    method: 'get'
  })
}
// 新增or编辑
export const edit = (params) => {
  return request({
    url: '/steel-arch/gantry/add',
    data:params,
    method: 'post'
  })
}
// 删除
export const deleteById = (params) => {
  return request({
    url: '/steel-arch/gantry/record/delete',
    params:params,
    method: 'get'
  })
}

// 类型
export const typeList = (params) => {
  return request({
    url: '/steel-arch/gantry/option/name',
    params:params,
    method: 'get'
  })
}


// 记录列表
export const getOpenList = (params) => {
  return request({
    url: '/steel-arch/gantry/record_list',
    params:params,
    method: 'get'
  })
}
// 新增or编辑 记录
export const editOpen = (params) => {
  return request({
    url: '/steel-arch/gantry/open',
    data:params,
    method: 'post'
  })
}
